<?php
    //include require files
    require_once("friendlyurl.php");

    //Sample1
    $string1 = "我是中国人！";
    $string2 = "私日本語を話す";
    $string3 = "포럼사무실";
    $translate1 = translate($string1);
    $translate2 = translate($string2); // or translate($string, "japanese")
    $translate3 = translate($string3);
    $seo1 = friendlyURL($translate1);
    $seo2 = friendlyURL($translate2);
    $seo3 = friendlyURL($translate3);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SEO friendly URL in PHP</title>
</head>
<body>
<?php
    echo "{$string1} -> {$translate1} -> {$seo1}<br />";
    echo "{$string2} -> {$translate2} -> {$seo2}<br />";
    echo "{$string3} -> {$translate3} -> {$seo3}<br />";
?>
</body>
</html>
